package com.qf.webmaster.feign;

import com.qf.webmaster.entity.User;
import org.springframework.stereotype.Component;

@Component
public class SearchClientFallback implements SearchClient {

    @Override
    public String hello() {         // 降级方法
        return "hello,托底数据";
    }

    @Override
    public String findById(String id) {
        return "findById,托底数据";
    }

    @Override
    public String findByCondition(String name, String age) {
        return "findByCondition,托底数据";
    }

    @Override
    public String save(User user) {
        return "save,托底数据";
    }
}
